home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / S3D_2E1.exe / Shout3d_runtime / codebase / models / visibilityLimitTest.s3d < prev    next >
Text File  |  2000-06-19  |  1KB  |  76 lines

  1. #VRML V2.0 utf8
  2.  
  3. DEF BG Background{
  4.     color 1 1 1 
  5. }
  6.  
  7. Transform{
  8. translation -12 10 0
  9. children[
  10. Shape{
  11. geometry Box{ size 20 20 20 }
  12. appearance Appearance{
  13. material DEF BOX_MAT Material{
  14.     diffuseColor 1 0 0
  15.     transparency 0
  16. }
  17. }
  18. }
  19. ]
  20. }
  21. Transform{
  22. translation -18 10 -6
  23. scale 7.5 7.5 7.5 
  24. children[
  25. Shape{
  26.     geometry MultiMesh {
  27.       coord    Coordinate {
  28.     point    [ -1 1 1,
  29.           -1 -1 1,
  30.           1 1 1,
  31.           1 -1 1,
  32.           1 1 -1,
  33.           1 -1 -1,
  34.           -1 1 -1,
  35.           -1 -1 -1 ]
  36.       }
  37.  
  38.       coordIndex    [ 0, 1, 3, 2, -1, 4, 5, 7,
  39.             6, -1, 6, 7, 1, 0, -1, 2,
  40.             3, 5, 4, -1, 6, 0, 2, 4,
  41.             -1, 1, 7, 5, 3, -1 ]
  42.        }
  43. appearance Appearance{
  44. material Material{
  45.     diffuseColor 0 0 1
  46.     transparency 0
  47. }
  48. }
  49. }
  50. ]
  51. }
  52. DEF Combo_Dummy-TIMER TimeSensor{
  53. cycleInterval 2.667
  54. loop TRUE
  55. }
  56.  
  57. DEF Camera01 Viewpoint{
  58. fieldOfView 0.6024
  59. position 36.45 22.24 -53.66
  60. orientation -0.031 0.997 0.077 -3.907
  61. description "Camera01"
  62. }
  63. DEF NavInfo NavigationInfo {
  64.     headlight true
  65.     visibilityLimit 39
  66. }
  67.  
  68. DEF VIS_INTERP ScalarInterpolator {
  69.    key [0, .5, 1 ]
  70.    keyValue [ 38 45, 38 ]
  71. }
  72. ROUTE Combo_Dummy-TIMER.fraction_changed TO VIS_INTERP.set_fraction
  73. ROUTE VIS_INTERP.value TO NavInfo.visibilityLimit
  74.  
  75.  
  76.